package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.McnInstitutionsMapper;
import com.ruoyi.system.domain.McnInstitutions;
import com.ruoyi.system.service.IMcnInstitutionsService;

/**
 * MCN信息Service业务层处理
 *
 * @author shawu
 * @date 2024-08-15
 */
@Service
public class McnInstitutionsServiceImpl implements IMcnInstitutionsService
{
    @Autowired
    private McnInstitutionsMapper mcnInstitutionsMapper;

    /**
     * 查询MCN信息
     *
     * @param mcnId MCN信息主键
     * @return MCN信息
     */
    @Override
    public McnInstitutions selectMcnInstitutionsByMcnId(Long mcnId)
    {
        return mcnInstitutionsMapper.selectMcnInstitutionsByMcnId(mcnId);
    }

    /**
     * 查询MCN信息列表
     *
     * @param mcnInstitutions MCN信息
     * @return MCN信息
     */
    @Override
    public List<McnInstitutions> selectMcnInstitutionsList(McnInstitutions mcnInstitutions)
    {
        return mcnInstitutionsMapper.selectMcnInstitutionsList(mcnInstitutions);
    }

    /**
     * 新增MCN信息
     *
     * @param mcnInstitutions MCN信息
     * @return 结果
     */
    @Override
    public int insertMcnInstitutions(McnInstitutions mcnInstitutions)
    {
        return mcnInstitutionsMapper.insertMcnInstitutions(mcnInstitutions);
    }

    /**
     * 修改MCN信息
     *
     * @param mcnInstitutions MCN信息
     * @return 结果
     */
    @Override
    public int updateMcnInstitutions(McnInstitutions mcnInstitutions)
    {
        return mcnInstitutionsMapper.updateMcnInstitutions(mcnInstitutions);
    }

    /**
     * 批量删除MCN信息
     *
     * @param mcnIds 需要删除的MCN信息主键
     * @return 结果
     */
    @Override
    public int deleteMcnInstitutionsByMcnIds(Long[] mcnIds)
    {
        return mcnInstitutionsMapper.deleteMcnInstitutionsByMcnIds(mcnIds);
    }

    /**
     * 删除MCN信息信息
     *
     * @param mcnId MCN信息主键
     * @return 结果
     */
    @Override
    public int deleteMcnInstitutionsByMcnId(Long mcnId)
    {
        return mcnInstitutionsMapper.deleteMcnInstitutionsByMcnId(mcnId);
    }
}
